package com.learn.spring.ioc.way.conditional;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;

public class ConditionalConfig {

    @Bean
    public ConditionalTest conditionalTest() {
        return new ConditionalTest();
    }

    @Bean
    @Conditional(MyConditional.class)
    public Test test() {
        return new Test();
    }

}
